package com.project.service.impl;

import com.project.bean.EmployeeDoProject;
import com.project.mapper.EmployeeDoProjectMapper;
import com.project.service.IEmployeeDoProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DoProjectServiceImpl implements IEmployeeDoProjectService {
    @Autowired
    private EmployeeDoProjectMapper mapper;
    @Override
    public void addEmployeeToProject(EmployeeDoProject employeeDoProject) {
        mapper.addEmployeeToProject(employeeDoProject);
    }

    @Override
    public void updateFinishDate(int id, String nowDate) {
        mapper.updateFinishDate(id,nowDate);
    }
}
